<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015-3-27
 * Time: 17:08
 */

namespace zhtfrontend\components\bases;

use common\components\traits\BindBehaviorsTrait;
use yii\db\ActiveRecord;
use common\components\helpers\Fun;

class BaseModel extends ActiveRecord{

    use BindBehaviorsTrait;

    public static function getDb(){
        return Fun::getSiteDb();
//        Fun::setSiteDatabases(Fun::getSiteId());
    }
}